package com.cjb.cloudsystem.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.cjb.cloudsystem.convert.GenderConvert;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * @Author chenjinbin
 * @Package IntelliJ IDEA
 * @Class UsersExcelVO
 * @Date 2024-01-24 下午7:31
 */
@Data
@Schema(description = "用户导出Excel实体类")
public class UsersExcelVO {
    @Schema(description = "用户名")
    @ExcelProperty(index = 0, value = "用户名")
    private String username;


    @Schema(description = "姓名")
    @ExcelProperty(index = 1, value = "姓名")
    private String realName;

    @ExcelProperty(index = 2, value = "性别",converter = GenderConvert.class)
    @Schema(description = "性别   0：男   1：女   2：未知")
    private Integer gender;

    @Schema(description = "手机号")
    @ExcelProperty(index = 3, value = "手机号")
    private String mobile;

    @Schema(description = "密码")
    @ExcelProperty(index = 4, value = "用户名")
    private String password;

    @ExcelProperty(index = 5, value = "邮箱")
    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "创建时间")
    @ExcelProperty(index = 6, value = "创建时间")
    private Date createTime;
}
